package com.order.mapper;

import com.order.bean.Foods;
import com.order.bean.Order;
import com.order.bean.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface OrderMapper {

    int insert(Order order);

    int updateUserOrderState(Order order);

    int update(Order order);

    Order getUserLatestOrder(Order order);

    List<Foods> selectOrderAll(Integer userId);

    @Delete("delete from order where id = #{id}")
    int deletOrder(Integer id);

}
